<form id="pagerForm" method="post" action="{:url('Order/index')}">
    <input type="hidden" name="order_sn" value="{$order_sn}"/>
    <input type="hidden" name="company_name" value="{$company_name}"/>
    <input type="hidden" name="pageNum" value="{$pageNum}"/>
</form>
<div class="pageHeader">
    <form onsubmit="return navTabSearch(this);" action="{:url('Outtime/index')}" method="post">
        <div class="searchBar">
            <table class="searchContent">
                <tr>
                    <td>
                        <label>订单编号：</label>
                        <input type="text" id="order_sn" name="order_sn" value="{$order_sn}"/>
                    </td>
                    <td>
                        <label>企业名称：</label>
                        <input type="text" id="company_name" name="company_name" value="{$company_name}"/>
                    </td>
                </tr>
            </table>
            <div class="subBar">
                <ul>
                    <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit">搜索</button>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </form>
</div>
<div class="pageContent">
    <table class="table" width="100%" layoutH="108">
        <thead>
            <tr>
                <th width="4%">订单号</th>
                <th width="12%">订单编号</th>
                <th width="15%">检车站名称</th>
                <th width="8%">检车人电话</th>
                <th width="12%">检车人地址</th>
                <th width="5%">支付状态</th>
                <th width="5%">退款状态</th>
                <th width="5%">订单总价</th>
                <th width="11%">创建日期</th>
                <th width="11%">修改日期</th>
                <th width="10%">操作</th>
            </tr>
        </thead>
        <tbody>
            {volist name="list" id="vo"}
            <tr target="userId">
                <td>{$vo.order_id}</td>
                <td>{$vo.order_sn}</td>
                <td>{$vo.company_name}</td>
                <td>{$vo.usermobile}</td>
                <td>{$vo.address}</td>
                <td>
                    {switch name="vo.pay_status"}
                    {case value="0"}
                    未支付
                    {/case}
                    {case value="1"}
                    已支付
                    {/case}
                    {/switch}
                </td>
                <td>
                    {if condition="$vo.refund_status eq 1"}已申请
                    {elseif condition="$vo.refund_status eq 2"}退款中
                    {elseif condition="$vo.refund_status eq 3"}已退款
                    {elseif condition="$vo.refund_status eq 0"}未申请
                    {elseif condition="$vo.refund_status eq 5"}申请失败
                    {/if}
                </td>
                <td>{$vo.total_amount}</td>
                <td>{$vo.create_time|date="Y-m-d H:i:s", ###}</td>
                <td>{$vo.update_time|date="Y-m-d H:i:s", ###}</td>
                <td><a rel="outtime_detail" class="adeditd" href="{:url('Outtime/detail')}?id={$vo.order_id}" target="navTab"
                       width="900" height="550" title="详情" mask="true">详情</a>
                    {if condition="($vo.refund_status neq 2) and ($vo.refund_status neq 3) and ($vo.refund_status neq 5)"}
                    <a rel="outtime_true" style="color: red;" class="adeditd" href="{:url('Outtime/surereback')}?id={$vo.order_id}" target="ajaxTodo" title="确认退款吗">退款</a>
                    {/if}
                </td>
            </tr>
            {/volist}
        </tbody>
    </table>
    <div class="panelBar">
        <div class="pages">
            <span>共{$count}条</span>
        </div>
        <div class="pagination" targetType="navTab" totalCount="{$count}" numPerPage="{$numPerPage}" pageNumShown="10"
             currentPage="{$pageNum}"></div>
    </div>
</div>
